package com.wonderful.eyepetizer.utils

import com.wonderful.eyepetizer.app.mApplication

/**
 * Desc:
 * @Author: wonderful
 * @Time: 2024/2/20 20:13
 */
object ScreenUtils {
    private var screenWidth = 0
    private var screenHeight = 0

    init {
        screenWidth = mApplication.resources.displayMetrics.widthPixels
        screenHeight = mApplication.resources.displayMetrics.heightPixels
    }

    fun getScreenWidth(): Int = screenWidth

    fun getScreenHeight(): Int = screenHeight
}